﻿using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.ItemMasters;
using Joy.Erp.BasicArchives.Storage;
using System;

namespace Joy.Erp.BasicArchives.Receipt
{
    public class ReceivementLine : DocumentLineAggregateRoot, IChild
    {
        /// <summary>
        /// 采购申请单
        /// </summary>
        public Receivement Document { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public Guid ItemMasterId { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public ItemMaster ItemMaster { get; set; }

        /// <summary>
        /// 料品编号
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 料品名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ItemSpec { get; set; }

        /// <summary>
        /// 实收数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 发货数量
        /// </summary>
        public decimal ShipmentQuantity { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public Guid UnitId { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public AuxiliaryUnit Unit { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public Guid? WarehouseId { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public Warehouse Warehouse { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string Batch { get; set; }
    }
}
